//
//  ONLineMovieModel.m
//  豆瓣网络请求StoryBoard版
//
//  Created by JP on 16/1/29.
//  Copyright © 2016年 jp. All rights reserved.
//

#import "ONLineMovieModel.h"

@implementation ONLineMovieModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
- (instancetype)initWIthDataSource:(NSDictionary *)dataSource
{
    self = [super init];
    if (self) {
       
        [self setValuesForKeysWithDictionary:dataSource];
        
        NSMutableArray *mutableArray = [NSMutableArray arrayWithCapacity:0];
        
        for (NSDictionary *dic in self.entries) {
             ModelDetailModel *movieDetailModel = [[ModelDetailModel alloc] init];
            [movieDetailModel setValuesForKeysWithDictionary:dic];
            [mutableArray addObject:movieDetailModel];
        }
        self.entries = [NSArray arrayWithArray:mutableArray];
        
        
        
    }
    return self;
}

@end
